from django.conf.urls import url
from . import views

urlpatterns = [
    # url(r'^login/$', views.RedirectLoginView.as_view()),
    url(r'^api/v1.0/imagecode/$', views.ImageCodeView.as_view()),
    url(r'^api/v1.0/sms/$', views.SMSCodeView.as_view()),
    url(r'^api/v1.0/users/$', views.RegisterView.as_view()),
    url(r'^api/v1.0/session/$', views.LoginView.as_view()),
    url(r'^api/v1.0/user/$', views.UserInfoView.as_view()),
    url(r'^api/v1.0/user/avatar/$', views.AvatarUpView.as_view()),
    url(r'^api/v1.0/user/name/$', views.UsernameUpView.as_view()),
    url(r'^api/v1.0/user/auth/$', views.UserAuthView.as_view()),

]
